body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #f4f4f9, #e0e0f5);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    background-color: #fff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
}

h1 {
    text-align: center;
    color: #6c5ce7;
    margin-bottom: 1.5rem;
}

.input-container {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

#taskInput {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    margin-right: 0.5rem;
}

#addTaskBtn {
    padding: 0.5rem 1rem;
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

#addTaskBtn:hover {
    background-color: #5a4fcf;
}

ul {
    list-style-type: none;
    padding: 0;
}

li {
    display: flex;
    align-items: center;
    padding: 0.75rem;
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

li:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

li.completed {
    background-color: #e8f5e9;
    text-decoration: line-through;
    color: #888;
}

li input[type="checkbox"] {
    margin-right: 0.75rem;
    cursor: pointer;
}

li span {
    flex: 1;
    margin-right: 0.75rem;
}

li button {
    margin-left: 0.5rem;
    background-color: #ff7675;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

li button.edit-btn {
    background-color: #00b894;
}

li button.edit-btn:hover {
    background-color: #00a383;
}

li button:hover {
    background-color: #d63031;
}

.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    font-size: 0.9rem;
}

#completedCount {
    color: #6c5ce7;
}

#clearCompleted, #toggleCompleted {
    background-color: #6c5ce7;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

#clearCompleted:hover, #toggleCompleted:hover {
    background-color: #5a4fcf;
}